package com.songlanyun.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * 区块链调用服务配置
 *
 * @author zhangqh
 */
@ConfigurationProperties(prefix = "chain")
@Component
@Data
public class ChainProperties {
    /**
     * 区块链服务具体地址
     */
    private String baseUrl;

    /**
     * 为用户账号创建区块链地址
     */
    private String  createAccountAddressPath;

    /**
     * 账户提现
     */
    private String  createWithdrawalPath;

    /**
     * 同步用户账户地址
     */
    private Boolean syncAccountAddressJobEnabled;

    /**
     * 是否开启动态价格
     */
    private Boolean dynamicPointPrice;

    /**
     * 获取积分价格地址
     */
    private String pointPriceUrl;

    private Map<String,String> headers;
}
